<div class="search-form">
<form method="post" action="tags-search.php" name="tags-livesearch" id="tags-livesearch-form">
	<div class="search-bar">
		<input type="text" name="search_tags" value="{$search_tags}" id="search_tags" />
		<input type="submit" name="search-button" value="Search" class="submit" />
	</div>
	<div id="livesearch-results"></div>
</form>
</div>

{if $tagss|count}
<table class="data" id="data-table">
<!--{* <caption>List of Tags</caption> *}-->
<thead>
	<tr class="thead">
		<th>S.N.</th>
		<th>Details</th>
		<th><a href="?sort=tag_name">Tag Name</a></th>
		<th><a href="?sort=tag_plural">Tag Plural</a></th>
		<th><a href="?sort=tag_singular">Tag Singular</a></th>
	    <th>Browse</th>
	</tr>
</thead>
<tbody>
{section name='l' loop=$tagss}
	<tr class="{cycle values='A,B'}">
		<td class="r">{$smarty.section.l.index_next+$pagination->begining_entry()}.</td>
		<td><a href="tags-details-public.php?id={$tagss[l].tag_id}&amp;code={$tagss[l].code}">Details</a></td>
		<td><a href="tags-details-public.php?id={$tagss[l].tag_id}&amp;code={$tagss[l].code}">{$tagss[l].tag_name}</a></td>
		<td>{$tagss[l].tag_plural}</td>
		<td>{$tagss[l].tag_singular}</td>
	    <td><a href="images-tags.php?id={$tagss[l].tag_id}&amp;code={$tagss[l].code}">Browse</a> - {$tagss[l].images_counter} images</td>
	</tr>
{sectionelse}
	<tr class="error">
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
		<td>-</td>
	    <td>-</td>
	</tr>
{/section}
</tbody>
</table>

<!-- paginator -->
{if $pagination->has_pages()}
<div class="paginator">
	<span class="introduction">Jump to page: </span>
	
	<!--{* wrap with <ul>...</ul> tags when using ulli=true parameter. *}-->
	<!--{* <ul> *}-->
	{paginate separator=' ' ulli=false source=$pagination}
	<!--{* <ul> *}-->
</div>
{/if}

{else}
	<div class="nodata">You do not have any records here.</div>
{/if}

<!-- End of tags List (Public) -->